//
//  XXIncomeTaxCalculationTipCell.m
//  XingXue
//
//  Created by XingXue Team on 2023.
//  Copyright © 2023 XingXue Team. All rights reserved.
//

#import "XXIncomeTaxCalculationTipCell.h"

@implementation XXIncomeTaxCalculationTipCell

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setData:(id)data delegate:(id)delegate {

    if ([data isKindOfClass:[NSDictionary class]]) {
        if ([data[@"data"] isKindOfClass:[XXIncomeTaxCalculationTipCellModel class]]) {
            XXIncomeTaxCalculationTipCellModel *model = data[@"data"];
            _titleLabel.text = model.title;
        }
    }
}

@end


#pragma mark - Model

@implementation XXIncomeTaxCalculationTipCellModel

+ (XXIncomeTaxCalculationTipCellModel *)ittemModelWithTitle:(NSString *)title {
    XXIncomeTaxCalculationTipCellModel *model = [XXIncomeTaxCalculationTipCellModel new];
    model.title = title.length > 0 ? title : @"";
    return model;
}

@end
